FROM ubuntu:16.04
MAINTAINER kinven xqw2@163.com

# only for Chinese Developers
#RUN mv /etc/apt/sources.list /etc/apt/sources.list.bak
#
#COPY ./sources.list /etc/apt/
#
#RUN apt-key adv --keyserver keyserver.ubuntu.com --recv-keys C0B21F32 \
#  && apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 437D05B5

RUN apt-get update \
  && apt-get install -y supervisor  \
  && apt-get install -y curl sudo \
  && mkdir -p /var/log/supervisor \
  && curl -sL https://deb.nodesource.com/setup_8.x | sudo -E bash - \
  && apt-get install -y nodejs \
  && apt-get clean && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* \
  && apt-get autoremove -y \
  && ln -s /usr/bin/nodejs /usr/local/bin/node

